#ifndef XLOG
#define XLOG
#include "../XModEngine/XObject.h"
#include "COMInclude.h"
#include <fstream>
class XC_ENTRY XLog : public XObject
{
private:
	ofstream strm_log_file;
	static XLog* ptr_xlog;
public:
	XLog(void);
	~XLog();
	void LogTo(UINT u_type,string str_content);
	void SetLogFile(string str_file_name);
	static XLog* GetInstance(){
		return ptr_xlog;
	};
};
#endif

